package com.yidu.best.basicSetup.custodian.domain;

import java.math.BigDecimal;

public class Custodian {
	/**
	 * 管理人id
	 */
	private String custodianId;
	/**
	 * 管理人名
	 */
	private String custodianName;
	
	
	/**
	 * 是否可用
	 */
    private Integer useable;
   
    /**
	 * 管理费
	 */
	private BigDecimal custodianFee;
	/**
	 * 描述
	 */
	private String description;
	
	public Custodian() {
		super();
	}

	public Custodian(String custodianId, String custodianName, Integer useable, BigDecimal custodianFee,
			String description) {
		super();
		this.custodianId = custodianId;
		this.custodianName = custodianName;
		this.useable = useable;
		this.custodianFee = custodianFee;
		this.description = description;
	}

	public String getCustodianId() {
		return custodianId;
	}

	public void setCustodianId(String custodianId) {
		this.custodianId = custodianId;
	}

	public String getCustodianName() {
		return custodianName;
	}

	public void setCustodianName(String custodianName) {
		this.custodianName = custodianName;
	}

	public Integer getUseable() {
		return useable;
	}

	public void setUseable(Integer useable) {
		this.useable = useable;
	}

	public BigDecimal getCustodianFee() {
		return custodianFee;
	}

	public void setCustodianFee(BigDecimal custodianFee) {
		this.custodianFee = custodianFee;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	public String toString() {
		return "Custodian [custodianId=" + custodianId + ", custodianName=" + custodianName + ", useable=" + useable
				+ ", custodianFee=" + custodianFee + ", description=" + description + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((custodianFee == null) ? 0 : custodianFee.hashCode());
		result = prime * result + ((custodianId == null) ? 0 : custodianId.hashCode());
		result = prime * result + ((custodianName == null) ? 0 : custodianName.hashCode());
		result = prime * result + ((description == null) ? 0 : description.hashCode());
		result = prime * result + ((useable == null) ? 0 : useable.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Custodian other = (Custodian) obj;
		if (custodianFee == null) {
			if (other.custodianFee != null)
				return false;
		} else if (!custodianFee.equals(other.custodianFee))
			return false;
		if (custodianId == null) {
			if (other.custodianId != null)
				return false;
		} else if (!custodianId.equals(other.custodianId))
			return false;
		if (custodianName == null) {
			if (other.custodianName != null)
				return false;
		} else if (!custodianName.equals(other.custodianName))
			return false;
		if (description == null) {
			if (other.description != null)
				return false;
		} else if (!description.equals(other.description))
			return false;
		if (useable == null) {
			if (other.useable != null)
				return false;
		} else if (!useable.equals(other.useable))
			return false;
		return true;
	}

	
}
